<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ attribute name="pages" required="true" type="java.lang.Integer"%>
<%@ attribute name="count" required="true" type="java.lang.Integer"%>
<div class="listmenu">
	<p>
		<button onclick="new deleteMail().del1()">
			删除
		</button>
		<button onclick="new deleteMail().del2()">
			彻底删除
		</button>
		<button>
			转发
		</button>
	</p>
	<p align="right" class="minfont">
		<%
				int all = (int) Math.ceil(count.intValue() / 20.0);
				if (all == 0)
					all = 1;
				int page=pages.intValue();
				if (page == 1) {
			%>
		<span style="color: #666">上一页<<</span>
		<%
				} else {
			%>
		<a href="#" style="color: #333" onclick="ajax_prepage()">上一页<<</a>
		<%
				}
			%>
		<%
				if (page == all) {
			%>
		&nbsp;
		<span style="color: #666">下一页>></span>&nbsp;
		<%
				} else {
			%>
		&nbsp;
		<a href="#" style="color: #333" onclick="ajax_nextpage()">下一页>></a>&nbsp;
		<%
				}
			%>
		<span style="color: #333"> <%=pages%>/<%=all%>页</span>
	</p>
</div>